import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;

public class AdminFrame extends JFrame{
    JButton bAccountDetails = new JButton( "Change Account \nDetails" ) ;
    JButton bFilmDetails = new JButton( "Change Film \nDetails" );
    JButton bFilmReviews = new JButton( "Change Film \nReviews" );
    JButton bNewsletter = new JButton( "Newsletter" );


    AdminFrame(){
        Image bGround = ReadImage.getImage("http://wallpapers.wallbase.cc/rozne/wallpaper-389121.jpg");
        Browser bGPanel = new Browser( bGround );
        add(bGPanel);

        bAccountDetails.setBounds(100,20,200,200);
        bFilmDetails.setBounds(600,20,200,200);
        bFilmReviews.setBounds(100,330,200,200);
        bNewsletter.setBounds(600,330,200,200);

        bGPanel.add(bAccountDetails);
        bGPanel.add(bFilmDetails);
        bGPanel.add(bFilmReviews);
        bGPanel.add(bNewsletter);

        setVisible(true);
        setSize(1000,600);


        clickAccountDetails();
        clickFilmDetails();
        clickFilmReviews();
        clickNewsletter();
    }

    public void clickAccountDetails(){
        bAccountDetails.addActionListener( new ActionListener() {
            public void actionPerformed( ActionEvent ae ){
                EditMemberFrame temp = new EditMemberFrame();
            }
        });
    }

    public void clickFilmDetails(){
        bFilmDetails.addActionListener( new ActionListener() {
            public void actionPerformed( ActionEvent ae ){
                EditFilmFrame temp = new EditFilmFrame();
            }
        });
    }

    public void clickFilmReviews(){
        bFilmReviews.addActionListener( new ActionListener() {
            public void actionPerformed( ActionEvent ae ){

            }
        });
    }

    public void clickNewsletter(){
        bNewsletter.addActionListener( new ActionListener() {
            public void actionPerformed( ActionEvent ae ){

            }
        });
    }

}

